package com.schoolcloud.serve.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Data;

/**
 * 认领记录表（存储处理过程和结果）
 * @TableName request_process
 */
@TableName(value ="request_process")
@Data
public class RequestProcess implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer processId;

    /**
     *
     */
    private Integer requestId;

    /**
     * 处理人id
     */
    private Integer processorId;

    /**
     * 处理时间
     */
    private LocalDateTime actionTime;

    /**
     * 处理状态'verify', 'reject', 'complete'
     */
    private Integer actionType;

    /**
     * 备注
     */
    private String notes;

    /**
     * 归还方式（线下，快递）
     */
    private String returnMethod;

    /**
     * 归还完成时间
     */
    private LocalDateTime completedTime;

    /**
     * 评价
     */
    private Integer rating;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
